package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 商品库存表
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopProductStockPageDTO", description = "商品库存表")
public class ShopProductStockPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 规格值id组合，例如：718,527,492
     */
    @ApiModelProperty(value = "规格值id组合，例如：718,527,492")
    @NotEmpty(message = "规格值id组合，例如：718,527,492不能为空")
    @Length(max = 1000, message = "规格值id组合，例如：718,527,492长度不能超过1000")
    private String specIds;
    /**
     * 规格值组合，例如：红色,大码
     */
    @ApiModelProperty(value = "规格值组合，例如：红色,大码")
    @Length(max = 1000, message = "规格值组合，例如：红色,大码长度不能超过1000")
    private String specValues;
    /**
     * 所属商品id
     */
    @ApiModelProperty(value = "所属商品id")
    @NotNull(message = "所属商品id不能为空")
    private Long productId;
    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    @Length(max = 255, message = "图片长度不能超过255")
    private String imgUrl;
    /**
     * 商品货号
     */
    @ApiModelProperty(value = "商品货号")
    @Length(max = 50, message = "商品货号长度不能超过50")
    private String productNo;
    /**
     * 库存
     */
    @ApiModelProperty(value = "库存")
    private Integer stock;
    /**
     * 成本价
     */
    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;
    /**
     * 售价
     */
    @ApiModelProperty(value = "售价")
    private BigDecimal sellPrice;
    /**
     * 原价
     */
    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;
    /**
     * 重量
     */
    @ApiModelProperty(value = "重量")
    private Float weight;
    /**
     * 库存预警
     */
    @ApiModelProperty(value = "库存预警")
    private Integer warning;
    /**
     * 状态 0-启用 1-禁用  2-删除
     */
    @ApiModelProperty(value = "状态 0-启用 1-禁用  2-删除")
    private Integer status;
    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    @Length(max = 255, message = "图标长度不能超过255")
    private String url;

}
